import { createRouter, createWebHistory } from 'vue-router'
import ChatView from '@/views/ChatView.vue'
import LoginView from '@/views/LoginView.vue'

const routes = [
  // 其他路由...
  {
    path: '/login', // 访问路径
    name: 'Login', // 路由名称
    component: LoginView,
  },
  {
    path: '/chat', // 访问路径
    name: 'Chat', // 路由名称
    component: ChatView,
  },
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: routes,
})

export default router
